package easycontroller.plugin;

import java.util.Map;

public abstract class Plugin {

    private String name;

    protected Map<String, String> config;

    public Map<String, String> getConfig() {
        return config;
    }

    public void setConfig(Map<String, String> config) {
        this.config = config;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    //描述信息
    public String getDescription() {
        return null;
    }

    //启动插件
    public abstract void start();

    //停止插件
    public abstract void stop();

    //重启插件
    public abstract void restart();

}
